package com.hbnu.dataAccesss;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class UserMapper  implements RowMapper<User> {
    public User mapRow(ResultSet rs,int rowNum) throws SQLException{
        User u = new User();
        u.setName(rs.getString("name"));
        u.setAddress(rs.getString("address"));
        return u;
    }
}
